﻿using System;
using System.Configuration;
using System.Data;
using System.Globalization;
using System.Text;
using System.Web.UI;
using System.Web.UI.WebControls;
using mojoPortal.Business;
using mojoPortal.Business.WebHelpers;
using mojoPortal.Web.Framework;
using mojoPortal.Web;
using Resources;
using System.Collections.Generic;

namespace ud_gSDMS.Member
{
    public partial class TopSearchItem : UserControl
    {
        #region Properties

        
        private mojoBasePage basePage;
        private Module module;

        private int pageId = -1;
        private int moduleId = -1;
        private string siteRoot = string.Empty;
        private string imageSiteRoot = string.Empty;
        private SiteSettings siteSettings;
        private string currentSite = string.Empty;
        
        public int PageId
        {
            get { return pageId; }
            set { pageId = value; }
        }

        public int ModuleId
        {
            get { return moduleId; }
            set { moduleId = value; }
        }

        public string SiteRoot
        {
            get { return siteRoot; }
            set { siteRoot = value; }
        }

        public string CurrentSite
        {
            get { return currentSite; }
            set { currentSite = value; }
        }

        #endregion


        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            Load += Page_Load;
            EnableViewState = false;
        }

        protected virtual void Page_Load(object sender, EventArgs e)
        {
            PopulateLabels();
            PopulateControls();
        }

        public void PopulateControls()
        {
           
        }

        

        protected virtual void PopulateLabels()
        {
            

        }

        protected virtual void LoadSettings()
        {
            
            if (Page is mojoBasePage)
            {
                basePage = Page as mojoBasePage;
                module = basePage.GetModule(moduleId);
            }

            
        }

        
        
    }
}